package org.team751.commands;

/**
 * A command that moves the forklift up until the top limit switch is pressed
 * @author samcrow
 *
 */
public class ForkliftTargetTop extends CommandBase {
    
        public ForkliftTargetTop(){
            requires(forklift);
        }

	protected void initialize() {
		forklift.setRelaysUp();
	}

	protected void execute() {
		
	}

	protected boolean isFinished() {
		return forklift.topLimitSwitchPressed();
	}

	protected void end() {
		forklift.stop();

	}

	protected void interrupted() {
		end();
	}

}
